package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
// 告诉Mybatis-plus，这个类与数据库中的哪张表有关
@TableName(value = "room_mark")
public class RoomMark {

    @TableField("dormroom_id")
    private int dormroomId;

    @TableField("dormbuild_Id")
    private int dormbuildId;

    @TableField("score")
    private int score;

    @TableField("text")
    private String text;

    @TableField("isagree")
    private int isagree;

    @TableField("time")
    private Date time;

    private String timestr;
}
